import useRequest from '../hook/request';

// 订单信息以及明细列表
export function getOrderInfoAndDetailApi(params: any, id:number) {
  return useRequest(
  `pay/order/getOrderInfoAndDetail/${id}`,
    params,
    'GET'
  )
}

// 退款
export function refundOrderApi(params: any) {
  return useRequest(
  `pay/order/refundOrder`,
    params,
    'POST'
  )
}